@color: #e2e2e2;
@rightLine: {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 1px;
  background: @color;
  content: '';
};
@leftLine: {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 1px;
  background: @color;
  content: '';
};
@flexCenter: {
  display: flex;
  align-items: center;
  justify-content: center;
};

.wrapper {
  overflow-x: auto;
  .subFormHead {
    display: flex;
    background: #f4f4f4;
    border-top: 1px solid @color;
    border-bottom: 1px solid @color;
    .headItem {
      position: relative;
      min-height: 42px;
      padding: 0 5px;
      line-height: 42px;
      &::before {
        @rightLine();
      }
      &:first-child::after {
        @leftLine();
      }
    }
    .operate {
      position: sticky;
      right: 0;
      z-index: 1;
      flex: 1;
      padding: 0 5px;
      background: #f4f4f4;
      @flexCenter();
      &::before {
        @leftLine();
        left: -1px;
      }
      &::after {
        @rightLine();
      }
    }
  }

  .rowList {
    position: relative;
    display: flex;
    // border-right: 1px solid @color;
    // border-left: 1px solid @color;
    &::after {
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1;
      height: 1px;
      background: @color;
      content: '';
    }
    .rowHead {
      position: sticky;
      left: 0;
      z-index: 2;
      width: 60px;
      background: #fff;
      border-bottom: 1px solid @color;
      @flexCenter();
      &::before {
        @rightLine();
      }
      &::after {
        @leftLine();
      }
    }
    .rowItem {
      position: relative;
      box-sizing: border-box;
      padding: 5px;
      @flexCenter();
      &::before {
        @rightLine();
      }
      .noMargin {
        margin-bottom: 0 !important;
      }
    }
    .operate {
      position: sticky;
      right: 0;
      z-index: 1;
      flex: 1;
      background: #fff;
      cursor: pointer;
      @flexCenter();
      &::before {
        @leftLine();
        left: -1px;
      }
      &::after {
        @rightLine();
      }
    }
  }

  .add {
    position: sticky;
    left: 0;
    width: 60px;
    margin-top: 10px;
  }
}
.menu {
  margin: 0;
  padding: 0;
  color: #1f2d3d;
  cursor: pointer;
  .menuItem {
    margin: 0;
    padding: 0 2px;
    line-height: 36px;
    &:hover {
      color: #fff;
      background: #4aa5fe;
    }
  }
}
